#ifndef CONNECTIONDIALOG_H
#define CONNECTIONDIALOG_H

#include <QtGui>
#include <QSqlDatabase>

class ConnectionDialog : public QDialog
{
	Q_OBJECT

public:
	ConnectionDialog( const QSqlDatabase& database, QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	virtual ~ConnectionDialog();

private slots:
	void connectDatabase();
	void cancel();

private:
	 QSqlDatabase mDatabase;

	 QLineEdit* mHostInput;
	 QLineEdit* mPortInput;
	 QLineEdit* mUserInput;
	 QLineEdit* mPassInput;
};

#endif // CONNECTIONDIALOG_H